package main

import (
	"fmt"

	"gitee.com/baihr/go-design-pattern/simplefactory/impl"
)

func main() {
	// 对象创建的细节在应用中不可见
	factory := impl.NewFactory()

	footballShoe, _ := factory.Make("football")
	fmt.Printf("footballShoe category is: %s\n", footballShoe.GetCategory())

	basketballShoe, _ := factory.Make("basketball")
	fmt.Printf("basketballShoe category is: %s\n", basketballShoe.GetCategory())
}
